<div id="menu-nav">
    <a title="Click to read information about Stock Inventory System." style="float: right;height: 100%;position: relative; padding:10px 15px;" href="/cmladmin/help">Help(?)</a>
	<div id="nav">
		<ul>
        <?php
            echo '<li class="first">' . anchor('/','Dashboard') . '</li>';
            echo '<li class="parent-li">' . anchor(base_url().uri_string().'?#','Inventory');
            echo '<ul class="submenu">';
                echo '<li>' . anchor('/inventory/stocklist','Printing') . '</li>';
                echo '<li>' . anchor('/inventory/stationerylist','Stationery') . '</li>';
                echo '<li>' . anchor('/inventory/assetlist/3','FA') . '</li>';
                echo '<li>' . anchor('/inventory/assetlist/4','NA') . '</li>';
                //echo '<li>' . anchor('/inventory/itemlist','Used Items') . '</li>';
            echo '</ul>';
            echo '</li>';
           /* 
            echo '<li class="parent-li">' . anchor(base_url().uri_string().'?#','Report');
            echo '<ul class="submenu">';
            if(isset($_SESSION['branch']) && $_SESSION['branch'] == '00HO00'){
                echo '<li>' . anchor('/report/itemlist/1','in stock items') . '</li>';
                echo '<li>' . anchor('/report/itemlist/2','used items') . '</li>';
                echo '<li>' . anchor('/report/itemlist/3','broken items') . '</li>';
            }else{
                echo '<li>' . anchor('/report/itemlist/1','in stock items') . '</li>';
                echo '<li>' . anchor('/report/itemlist/2','used items') . '</li>';
                echo '<li>' . anchor('/report/itemlist/3','broken items') . '</li>';
            }
            echo '</ul>';
            echo '</li>';
            */
            if(isset($_SESSION['group']) && $_SESSION['group'] != 'JU'){
                echo '<li class="parent-li">' . anchor(base_url().uri_string().'?#','Setting');
                if(isset($_SESSION['branch']) && $_SESSION['branch'] == '00HO00'){
                echo '<ul class="submenu">';
                    //echo '<li>' . anchor('/cmladmin/contractlist','Manage Contract Type') . '</li>';
                    echo '<li>' . anchor('/cmladmin/printlist','Manage Printing Type') . '</li>';
                    echo '<li>' . anchor('/cmladmin/locationlist','Manage Location') . '</li>';
                    echo '<li>' . anchor('/cmladmin/assetlist/3','Manage FA Type') . '</li>';
                    echo '<li>' . anchor('/cmladmin/assetlist/4','Manage NA Type') . '</li>';
                echo '</ul>';
                }
                echo '</li>';    
                echo '<li>'.anchor(base_url().uri_string().'?#', 'Instruction').'</li>';
            }
        ?>  
        </ul>
	</div>
</div>